package com.neuqsoft.rd.citizen.thirdapp.demo.api;

import com.neuqsoft.rd.citizen.thirdapp.demo.dto.SweptUserDTO;
import com.neuqsoft.rd.citizen.thirdapp.demo.service.Scene1Service;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 *
 * @author baidh
 * @date 2020/12/02
 */
@Api(tags = "扫码入园-不收费")
@RestController
@RequestMapping("/api/scene1/")
public class Scene1Api {

    @Autowired
    Scene1Service service;

    @GetMapping("/code")
    public SweptUserDTO scanCode(@RequestParam String authCode) {
        return service.scanCode(authCode);
    }

}
